/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package processamento;

import javax.media.jai.JAI;
import javax.media.jai.KernelJAI;
import javax.media.jai.PlanarImage;

/**
 *
 * @author Igor
 */
public class OperadorBordas {

    PlanarImage image;

    
    public PlanarImage detectaBordas() {
        
        image = JAI.create("gradientmagnitude", image,KernelJAI.GRADIENT_MASK_SOBEL_HORIZONTAL,KernelJAI.GRADIENT_MASK_SOBEL_VERTICAL);

        
        return image;
    }

    public void setImage(PlanarImage image) {
        this.image = image;
    }

    
}
